import Https from '@/utils/https'

// 获取验证码
const queryKaptchaReq = (params) => Https.get('/api/v1/kaptcha/get2', params)

// 登录
const queryLoginReq = (params) => Https.post('/api/v1/auth/login', params, { needCode: true })

// 获取配置信息
const getPortalSiteReq = (params) =>
  Https.get('/api/v1/firmsite/getPortalSite', params, { needCode: true })

// 获取登录用户信息
const queryLoginAuth = (params) =>
  Https.get('/api/v1/management/user/project/getCurrentUserInfo', params, { needCode: true })

export { queryKaptchaReq, queryLoginReq, getPortalSiteReq, queryLoginAuth }
